#!/usr/bin/env python
# -*- coding: UTF-8 -*- 
import re

action_log = "file_name"
domain_log = "file_name"

with open(action_log) as old_file:#打开老的文件
for line in old_file:#迭代一行，把line保留
text = line.split(" ")[1]#把字段拿出来进行正则匹配
if re.math(r"^/*",text):#匹配成功写入到新的文件里面
with open(domain_log,"w") as new_file:
new_file.write(line)
new_file.close()
old_file.close()



with open("1") as txt:ddddddddddd
    for line in txt.split(' '):
        if line[2] == 3:
            print line



for x in xrange(1,10):
    pass
i:
    pass

d




d




































    dsds


    splitd



